package com.myq.lawyermanager.dongao.service;

import com.myq.lawyermanager.dongao.entity.Lawyer;
import com.myq.lawyermanager.dongao.mapper.LawyerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 律师业务接口实现类
 */
@Service
public class LawyerServiceImpl implements LawyerService {
    @Autowired
    LawyerMapper lawyerMapper;
    /**
     * 添加律师
     *
     * @param lawyer 律师对象
     * @return 添加成功是1 添加失败是0
     */
    @Override
    public int addLawyer(Lawyer lawyer) {
        return lawyerMapper.insertLawyer(lawyer);
    }
}
